

#pragma once

// c std
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <signal.h>

// sys
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/signal.h>
#include <sys/select.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip_icmp.h>
#include <netinet/ip6.h>
#include <netinet/icmp6.h>
#include <errno.h>
#include <netdb.h>
#include <unistd.h>
#define MAXLINE 1024

#define ICMP_PATH   "/tmp/icmpd"

struct icmpd_err {

    int     icmpd_errno;
    char    icmpd_type;
    char    icmpd_code;
    socklen_t   icmpd_len;
    struct sockaddr_storage icmpd_dest;
};

